﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Linq;
using System.Configuration;

namespace internet_shop.Models.Repositories
{
    public class ProductRepository
    {
        DataContext dc = new DataContext(ConfigurationManager.ConnectionStrings["ShopDBConnectionString"].ToString());
        public List<Product> getAllProducts() {
            return dc.GetTable<Product>().ToList();
        }
    }
}